-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add v9 and leoncasa target feature to sparc #132552
base: master
Are you sure you want to change the base?
Conversation
186aaa6
to
8b08994
Compare
I'm not very familiar with Rust, but from what I can tell it looks okay. Also, a word on this:
|
Thanks for the clarification. I think separating However, we are using LLVM 19 which ties In #131222 we are trying to adopt the same approach as in LLVM 19, but actually adding the |
☔ The latest upstream changes (presumably #129884) made this pull request unmergeable. Please resolve the merge conflicts. |
8b08994
to
4dab43e
Compare
This adds the following two unstable target features:
v9
: SPARC-V9 instructions (LLVM definition)leoncasa
: CASA instruction1 of LEON3 and LEON4 processors (LLVM definition, LLVM feature name:hasleoncasa
)In LLVM 19, LLVM emits EM_SPARC32PLUS if the
v9
feature is enabled (llvm/llvm-project@fb7f65b)My understanding is that (some) use of the
v9
feature may eventually be replaced by thev8plus
feature in LLVM 20 (llvm/llvm-project@aca971d), but there is no other good way in the current LLVM 19.cc @thejpster @glaubitz
r? workingjubilee
@rustbot label +O-SPARC +A-target-feature
Footnotes
Atomic CAS instruction ↩